#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :

info = {'name': 'micah', 'age': 20, 'sex': 'male'}
# 获取字典中所有的key
for item in info:
    print(item)

print('*' * 10)

# 获取字典中所有的value
for item in info.values():
    print(item)

print('*' * 10)

# 获取字典中所有的key和value
for item in info.items():
    print(item)

print('*' * 10)

# 获取字典中所有的key的第二种方式
for item in info.keys():
    print(item)
